//
//  WordCollectListManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/6/17.
//

#import "WordCollectListManager.h"

@implementation WordCollectListManager

- (NSString *)methodName{
    return @"/word/collect/page";
}

- (JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypeGET;
}

#pragma mark - JPAPIManagerParamSource
- (NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    dict[@"page"] = self.page;
    dict[@"limit"] = @"10";
    NSString *userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    dict[@"userId"] = userId;
    dict[@"type"] = self.type;
    return dict;
}

@end
